<?php
/*
 * @Author: your name
 * @Date: 2020-12-08 15:22:59
 * @LastEditTime: 2020-12-08 15:28:18
 * @LastEditors: Please set LastEditors
 * @Description: Netfilter模块 学习属性定义
 * @FilePath: /special/application/common/definition/netfilter/NetfilterStudyDefinition.php
 */
namespace app\common\definition\netfilter;

class NetfilterStudyDefinition
{

    //手工下发规则 (对应auto属性)
    const MANUAL_CREATE_RULE = 1;
    //自动下发规则
    const AUTO_CREATE_RULE = 2;

    //累计学习 (对应 model 属性)
    const KEEP_LEARN = 1;
    //全新学习
    const NEW_LEARN = 2;

    //生成规则默认拒绝 (对应 allow 属性)
    const DROP_HANDLE = 0;
    //生成规则默认允许
    const ACCEPT_HANDLE = 1;

    //生成配置并立即学习 (对应 now 属性)
    const NOW_LEARN = 1;
    //只生成配置不学习
    const AFTER_LEARN = 0;

    //记录mac地址 (对应 have_mac_addr 属性)
    const RECORDING_MAC = 1;
    //不记录mac地址
    const CANCEL_RECORDING_MAC = 0;
}